<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="content">
	<div class="manageArticles">
		<div class="contols">
			<a class="link add-article" href="${pageContext.request.contextPath}/admin/add-article">ADD
				NEW ARTICLE</a>
		</div>
		<div class="list">
			<c:forEach items="${articles}" var="articleItem">
				<div class="item">
					<div>${articleItem.title}</div>
					<div class="controls">
						<form action="${pageContext.request.contextPath}/admin/delete-article" method="POST">
							<input id="articleId" name="articleId" type="hidden" value="${articleIte.id}">
							<button type="button">DELETE</button>
						</form>
						<form action="${pageContext.request.contextPath}/admin/edit-article" method="POST">
							<input id="articleId" name="articleId" type="hidden" value="${articleIte.id}">
							<button type="button">EDIT</button>
						</form>
					</div>
				</div>
			</c:forEach>
		</div>
	</div>



</div>